package com.serkol.ams.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 
 * @TableName users_wallet_withdrawal
 */
@TableName(value ="users_wallet_withdrawal")
@Data
public class UsersWalletWithdrawal implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long userId;

    /**
     * 
     */
    private BigDecimal amount;

    /**
     * 
     */
    private BigDecimal taxes;

    /**
     * 
     */
    private BigDecimal serviceCharge;

    /**
     * 
     */
    private BigDecimal requestAmount;

    /**
     * 
     */
    private BigDecimal balance;

    /**
     * 
     */
    private BigDecimal balanceOld;

    /**
     * 
     */
    private String remark;

    /**
     * 
     */
    private String name;

    /**
     * 
     */
    private Integer payType;

    /**
     * 
     */
    private Integer passwortType;

    /**
     * 
     */
    private String sn;

    /**
     * 
     */
    private String paySn;

    /**
     * 
     */
    private Integer status;

    /**
     * 
     */
    private Integer type;

    /**
     * 
     */
    private Date createDate;

    /**
     * 
     */
    private Date updateDate;

    /**
     * 
     */
    private Long operatorId;

    /**
     * 
     */
    private Long bankId;

    /**
     * 
     */
    private Long bankCardId;

    /**
     * 
     */
    private String auditRemark;

    /**
     * 
     */
    private String auditSn;

    /**
     * 
     */
    private Long auditImage;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        UsersWalletWithdrawal other = (UsersWalletWithdrawal) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserId() == null ? other.getUserId() == null : this.getUserId().equals(other.getUserId()))
            && (this.getAmount() == null ? other.getAmount() == null : this.getAmount().equals(other.getAmount()))
            && (this.getTaxes() == null ? other.getTaxes() == null : this.getTaxes().equals(other.getTaxes()))
            && (this.getServiceCharge() == null ? other.getServiceCharge() == null : this.getServiceCharge().equals(other.getServiceCharge()))
            && (this.getRequestAmount() == null ? other.getRequestAmount() == null : this.getRequestAmount().equals(other.getRequestAmount()))
            && (this.getBalance() == null ? other.getBalance() == null : this.getBalance().equals(other.getBalance()))
            && (this.getBalanceOld() == null ? other.getBalanceOld() == null : this.getBalanceOld().equals(other.getBalanceOld()))
            && (this.getRemark() == null ? other.getRemark() == null : this.getRemark().equals(other.getRemark()))
            && (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
            && (this.getPayType() == null ? other.getPayType() == null : this.getPayType().equals(other.getPayType()))
            && (this.getPasswortType() == null ? other.getPasswortType() == null : this.getPasswortType().equals(other.getPasswortType()))
            && (this.getSn() == null ? other.getSn() == null : this.getSn().equals(other.getSn()))
            && (this.getPaySn() == null ? other.getPaySn() == null : this.getPaySn().equals(other.getPaySn()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getCreateDate() == null ? other.getCreateDate() == null : this.getCreateDate().equals(other.getCreateDate()))
            && (this.getUpdateDate() == null ? other.getUpdateDate() == null : this.getUpdateDate().equals(other.getUpdateDate()))
            && (this.getOperatorId() == null ? other.getOperatorId() == null : this.getOperatorId().equals(other.getOperatorId()))
            && (this.getBankId() == null ? other.getBankId() == null : this.getBankId().equals(other.getBankId()))
            && (this.getBankCardId() == null ? other.getBankCardId() == null : this.getBankCardId().equals(other.getBankCardId()))
            && (this.getAuditRemark() == null ? other.getAuditRemark() == null : this.getAuditRemark().equals(other.getAuditRemark()))
            && (this.getAuditSn() == null ? other.getAuditSn() == null : this.getAuditSn().equals(other.getAuditSn()))
            && (this.getAuditImage() == null ? other.getAuditImage() == null : this.getAuditImage().equals(other.getAuditImage()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserId() == null) ? 0 : getUserId().hashCode());
        result = prime * result + ((getAmount() == null) ? 0 : getAmount().hashCode());
        result = prime * result + ((getTaxes() == null) ? 0 : getTaxes().hashCode());
        result = prime * result + ((getServiceCharge() == null) ? 0 : getServiceCharge().hashCode());
        result = prime * result + ((getRequestAmount() == null) ? 0 : getRequestAmount().hashCode());
        result = prime * result + ((getBalance() == null) ? 0 : getBalance().hashCode());
        result = prime * result + ((getBalanceOld() == null) ? 0 : getBalanceOld().hashCode());
        result = prime * result + ((getRemark() == null) ? 0 : getRemark().hashCode());
        result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
        result = prime * result + ((getPayType() == null) ? 0 : getPayType().hashCode());
        result = prime * result + ((getPasswortType() == null) ? 0 : getPasswortType().hashCode());
        result = prime * result + ((getSn() == null) ? 0 : getSn().hashCode());
        result = prime * result + ((getPaySn() == null) ? 0 : getPaySn().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getCreateDate() == null) ? 0 : getCreateDate().hashCode());
        result = prime * result + ((getUpdateDate() == null) ? 0 : getUpdateDate().hashCode());
        result = prime * result + ((getOperatorId() == null) ? 0 : getOperatorId().hashCode());
        result = prime * result + ((getBankId() == null) ? 0 : getBankId().hashCode());
        result = prime * result + ((getBankCardId() == null) ? 0 : getBankCardId().hashCode());
        result = prime * result + ((getAuditRemark() == null) ? 0 : getAuditRemark().hashCode());
        result = prime * result + ((getAuditSn() == null) ? 0 : getAuditSn().hashCode());
        result = prime * result + ((getAuditImage() == null) ? 0 : getAuditImage().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userId=").append(userId);
        sb.append(", amount=").append(amount);
        sb.append(", taxes=").append(taxes);
        sb.append(", serviceCharge=").append(serviceCharge);
        sb.append(", requestAmount=").append(requestAmount);
        sb.append(", balance=").append(balance);
        sb.append(", balanceOld=").append(balanceOld);
        sb.append(", remark=").append(remark);
        sb.append(", name=").append(name);
        sb.append(", payType=").append(payType);
        sb.append(", passwortType=").append(passwortType);
        sb.append(", sn=").append(sn);
        sb.append(", paySn=").append(paySn);
        sb.append(", status=").append(status);
        sb.append(", type=").append(type);
        sb.append(", createDate=").append(createDate);
        sb.append(", updateDate=").append(updateDate);
        sb.append(", operatorId=").append(operatorId);
        sb.append(", bankId=").append(bankId);
        sb.append(", bankCardId=").append(bankCardId);
        sb.append(", auditRemark=").append(auditRemark);
        sb.append(", auditSn=").append(auditSn);
        sb.append(", auditImage=").append(auditImage);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}